CXX = g++
VERSION = 0.7
CXXFLAGS = -Wall -g -O2 -fPIC -shared
LDFLAGS = 
PREFIX = /usr/local
TARGET = libinput

all: libinput 

libinput: input_data.cpp
	$(CXX) $(CXXFLAGS) -DPREFIX=\"$(PREFIX)\" input_interface.cpp input_data.cpp -o $(TARGET)-$(VERSION).so $(LDFLAGS)

clean:
	rm -f $(TARGET)-$(VERSION).so *.o *~ core.*

distclean: clean
	rm -rf config.* autom4te.cache autoscan.log configure.scan

install:
	test -d $(PREFIX)/lib || mkdir -p $(PREFIX)/lib
	cp $(TARGET)-$(VERSION).so $(PREFIX)/lib

uninstall:
	rm $(PREFIX)/lib/$(TARGET)-$(VERSION).so
  

